package uniandes.moviles.antid.mundo;


/**
 * Abstraction of a patient in the system.
 * @author Julio Mendoza
 *
 */
public class Patient extends User
{
	/**
	 * Constant that defines the role of the user in the application.
	 */
	private final static int ROLE = 0;
	
	/**
	 * The patient's assigned routine. 
	 */
	private Routine routine;
	
	/**
	 * Creates an instance of the patient.
	 */
	public Patient(PersistenceManager manager)
	{
		super(manager);
		routine = new Routine();		
	}

	/**
	 * Returns the routine assigned to the patient.
	 * @return the routine
	 */
	public Routine getRoutine() {
		return routine;
	}

	/**
	 * Adds a routine to the patient.
	 * @param routine the routine to set
	 */
	public void setRoutine(Routine routine) {
		this.routine = routine;
	}

	/*
	 * (non-Javadoc)
	 * @see uniandes.moviles.antid.mundo.User#getRole()
	 */
	public int getRole() {
		return ROLE;
	}	
	
}
